module(
    name = "cpp_tutorial",
    version = "1.0",
)

# 如果你还用了 rules_foreign_cc，可以添加
# bazel_dep(name = "rules_foreign_cc", version = "0.9.0")

# 使用模块扩展并保存为代理对象
eigen_ext = use_extension("//:eigen_deps.bzl", "eigen3_ext")

# 正确传入扩展代理对象
use_repo(eigen_ext, "eigen3")
